﻿/*
* ==============================================================================
*
* Filename: sip_param
* Description: sip_param
*
* Version: 1.0
* Created: 2020/9/3 16:14:26
* Compiler: Visual Studio 2019
*
* Author: Administrator
* Company: freelancer
*
* ==============================================================================
*/

namespace common {
	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Text;
	using System.Threading.Tasks;
	using lmsft.Media;

	public class sip_param {
		public static WavePlayer m_pPlayer;

		private static AudioOutDevice _m_pAudioOutDevice;
		public static AudioOutDevice m_pAudioOutDevice {
			get {
				if (_m_pAudioOutDevice != null)
					return _m_pAudioOutDevice;
				else {
					if (AudioOut.Devices.Length > 0)
						return _m_pAudioOutDevice = AudioOut.Devices[0];
					else
						return null;
				}
			}
			set => _m_pAudioOutDevice = value;
		}

		private static AudioInDevice _m_pAudioInDevice;
		public static AudioInDevice m_pAudioInDevice {
			get {
				if (_m_pAudioInDevice != null)
					return _m_pAudioInDevice;
				else {
					if (AudioIn.Devices.Length > 0)
						return _m_pAudioInDevice = AudioIn.Devices[0];
					else
						return null;
				}
			}
			set => _m_pAudioInDevice = value;
		}
	}
}